.class public Lcom/waiqin365/lightapp/kaoqin/c/c/f;
.super Lcom/waiqin365/lightapp/kaoqin/c/u;


# instance fields
.field public a:Ljava/lang/String;

.field public b:Ljava/lang/String;

.field public c:Ljava/lang/String;

.field public d:Ljava/lang/String;

.field private g:Lcom/waiqin365/lightapp/kaoqin/e/j;


# direct methods
.method public constructor <init>()V
    .locals 1

    const/16 v0, 0x82

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/kaoqin/c/u;-><init>(I)V

    return-void
.end method


# virtual methods
.method public a()Lcom/waiqin365/lightapp/kaoqin/e/j;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/c/c/f;->g:Lcom/waiqin365/lightapp/kaoqin/e/j;

    return-object v0
.end method

.method public a(Ljava/lang/String;)Z
    .locals 7

    const/4 v0, 0x0

    :try_start_0
    new-instance v1, Lcom/waiqin365/lightapp/kaoqin/e/j;

    invoke-direct {v1}, Lcom/waiqin365/lightapp/kaoqin/e/j;-><init>()V

    iput-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/c/c/f;->g:Lcom/waiqin365/lightapp/kaoqin/e/j;

    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string/jumbo v1, "code"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    const-string/jumbo v1, "code"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/c/c/f;->a:Ljava/lang/String;

    :cond_0
    const-string/jumbo v1, "message"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    const-string/jumbo v1, "message"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/c/c/f;->b:Ljava/lang/String;

    :cond_1
    const-string/jumbo v1, "isHasEmp"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    const-string/jumbo v1, "isHasEmp"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/c/c/f;->c:Ljava/lang/String;

    :cond_2
    const-string/jumbo v1, "isHasApprov"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_3

    const-string/jumbo v1, "isHasApprov"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/c/c/f;->d:Ljava/lang/String;

    :cond_3
    const-string/jumbo v1, "loc_type"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_4

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/c/c/f;->g:Lcom/waiqin365/lightapp/kaoqin/e/j;

    const-string/jumbo v3, "loc_type"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v1, Lcom/waiqin365/lightapp/kaoqin/e/j;->d:Ljava/lang/String;

    :cond_4
    const-string/jumbo v1, "max_photo"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_5

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/c/c/f;->g:Lcom/waiqin365/lightapp/kaoqin/e/j;

    const-string/jumbo v3, "max_photo"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v1, Lcom/waiqin365/lightapp/kaoqin/e/j;->a:Ljava/lang/String;

    :cond_5
    const-string/jumbo v1, "is_can_select_photo"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_6

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/c/c/f;->g:Lcom/waiqin365/lightapp/kaoqin/e/j;

    const-string/jumbo v3, "is_can_select_photo"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v1, Lcom/waiqin365/lightapp/kaoqin/e/j;->b:Ljava/lang/String;

    :cond_6
    const-string/jumbo v1, "max_width"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_7

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/c/c/f;->g:Lcom/waiqin365/lightapp/kaoqin/e/j;

    const-string/jumbo v3, "max_width"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v1, Lcom/waiqin365/lightapp/kaoqin/e/j;->c:Ljava/lang/String;

    :cond_7
    const-string/jumbo v1, "card_type"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_d

    const-string/jumbo v1, "card_type"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v3

    move v1, v0

    :goto_0
    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v4

    if-ge v1, v4, :cond_d

    invoke-virtual {v3, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v4

    new-instance v5, Lcom/waiqin365/lightapp/kaoqin/e/g;

    invoke-direct {v5}, Lcom/waiqin365/lightapp/kaoqin/e/g;-><init>()V

    const-string/jumbo v6, "id"

    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_8

    const-string/jumbo v6, "id"

    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, v5, Lcom/waiqin365/lightapp/kaoqin/e/g;->a:Ljava/lang/String;

    :cond_8
    const-string/jumbo v6, "name"

    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_9

    const-string/jumbo v6, "name"

    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, v5, Lcom/waiqin365/lightapp/kaoqin/e/g;->b:Ljava/lang/String;

    :cond_9
    const-string/jumbo v6, "is_photo"

    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_a

    const-string/jumbo v6, "is_photo"

    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, v5, Lcom/waiqin365/lightapp/kaoqin/e/g;->c:Ljava/lang/String;

    :cond_a
    const-string/jumbo v6, "sequence"

    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_b

    const-string/jumbo v6, "sequence"

    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, v5, Lcom/waiqin365/lightapp/kaoqin/e/g;->d:Ljava/lang/String;

    :cond_b
    const-string/jumbo v6, "validate_position"

    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_c

    const-string/jumbo v6, "validate_position"

    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/waiqin365/lightapp/kaoqin/e/g;->e:Ljava/lang/String;

    :cond_c
    iget-object v4, p0, Lcom/waiqin365/lightapp/kaoqin/c/c/f;->g:Lcom/waiqin365/lightapp/kaoqin/e/j;

    iget-object v4, v4, Lcom/waiqin365/lightapp/kaoqin/e/j;->e:Ljava/util/ArrayList;

    invoke-virtual {v4, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_d
    const-string/jumbo v1, "attendance_point"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_12

    const-string/jumbo v1, "attendance_point"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v2

    move v1, v0

    :goto_1
    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result v3

    if-ge v1, v3, :cond_12

    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v3

    new-instance v4, Lcom/waiqin365/lightapp/kaoqin/c/ah;

    invoke-direct {v4}, Lcom/waiqin365/lightapp/kaoqin/c/ah;-><init>()V

    const-string/jumbo v5, "id"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_e

    const-string/jumbo v5, "id"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    iput-object v5, v4, Lcom/waiqin365/lightapp/kaoqin/c/ah;->a:Ljava/lang/String;

    :cond_e
    const-string/jumbo v5, "position"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_f

    const-string/jumbo v5, "position"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    iput-object v5, v4, Lcom/waiqin365/lightapp/kaoqin/c/ah;->d:Ljava/lang/String;

    :cond_f
    const-string/jumbo v5, "addr"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_10

    const-string/jumbo v5, "addr"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    iput-object v5, v4, Lcom/waiqin365/lightapp/kaoqin/c/ah;->b:Ljava/lang/String;

    :cond_10
    const-string/jumbo v5, "deviation"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_11

    const-string/jumbo v5, "deviation"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v4, Lcom/waiqin365/lightapp/kaoqin/c/ah;->e:Ljava/lang/String;

    :cond_11
    const-string/jumbo v3, "3"

    iput-object v3, v4, Lcom/waiqin365/lightapp/kaoqin/c/ah;->f:Ljava/lang/String;

    iget-object v3, p0, Lcom/waiqin365/lightapp/kaoqin/c/c/f;->g:Lcom/waiqin365/lightapp/kaoqin/e/j;

    iget-object v3, v3, Lcom/waiqin365/lightapp/kaoqin/e/j;->f:Ljava/util/ArrayList;

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    add-int/lit8 v1, v1, 0x1

    goto :goto_1

    :cond_12
    const/4 v0, 0x1

    :goto_2
    return v0

    :catch_0
    move-exception v1

    goto :goto_2
.end method
